<?php /* Smarty version 2.6.16, created on 2013-09-03 10:55:14
         compiled from ../templates/admin/manageleads/editlead.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/leads.js" type="text/javascript"></script><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script>'; ?>


<?php echo ' 
<script type="text/javascript">

function showsuburb(stateid)
{
	if(stateid!=\'\')
	{
		ajax.sendrequest("GET",SITEROOT + "/admin/manageleads/show_suburb.php",{stateid:stateid},"","issuburbDiv");
	}
	else
	{
		document.getElementById(\'suburbid\').value=\'\';
	}
}

function showpostalcode(suburbid)
{
	if(suburbid!=\'\')
	{
		ajax.sendrequest("GET",SITEROOT + "/admin/manageleads/show_suburb.php",{suburbid:suburbid},"","isPostalDiv");
	}
	else
		document.getElementById(\'postalcode\').value=\'\';
}


</script> 
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="contain"> <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <div class="right_contain">
    <div class="heading_box">Edit Lead Price</div>
    <div class="whitebox"> 
      <!--Message Div Start--> 
      <?php if ($this->_tpl_vars['msg']): ?>
      <div class="masg_div"> <?php echo $this->_tpl_vars['msg']; ?>
 </div>
      <?php endif; ?> 
      <!--Message Div End-->
      
      <form name="frmAddLeads" id="frmAddLeads" action="" method="post">
        <input type="hidden" id="page" name="page" value="<?php echo $this->_tpl_vars['page']; ?>
" />
        <input type="hidden" id="leadsId" name="leadsId" value="<?php echo $this->_tpl_vars['leadsDetArray']['lead_id']; ?>
" />
        <div style="min-height:250px;"> 
          <!--Form Contain start-->
          
          <div class="form_fieldbox">
            <dl>
              <dt>Membership Plan:<span class="error">*</span></dt>
              <dd>
                <select name="plan_id" id="plan_id" class="select">
                  <option value="">--Select plan--</option>
                  
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['planArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              
                  <option value="<?php echo $this->_tpl_vars['planArray'][$this->_sections['i']['index']]['plan_id']; ?>
" <?php if ($this->_tpl_vars['planArray'][$this->_sections['i']['index']]['plan_id'] == $this->_tpl_vars['leadsDetArray']['plan_id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['planArray'][$this->_sections['i']['index']]['name']; ?>
</option>
                  
              <?php endfor; endif; ?>
              
                </select>
              </dd>
              <div class="clear"></div>
            </dl>
            <dl>
              <dt>Region:<span class="error">*</span></dt>
              <dd>
                <select name="regionid" id="regionid" class="select" onchange="showsuburb(this.value);">
                  <option value="">--Select Region--</option>
                  
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['stateArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              
                  <option value="<?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id']; ?>
" <?php if ($this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id'] == $this->_tpl_vars['leadsDetArray']['region_id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_name']; ?>
</option>
                  
              <?php endfor; endif; ?>
              
                </select>
              </dd>
              <div class="clear"></div>
            </dl>
			
           <!-- <dl>
              <dt>Suburb Area:<span class="error">*</span></dt>
              <dd>
                <div id="issuburbDiv">
                  <select name="suburbid" id="suburbid" class="select" onchange="showpostalcode(this.value);">
                    <option value="">--Select Suburb--</option>
                    
                 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['suburbArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                  
                    <option value="<?php echo $this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['leadsDetArray']['suburb_id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['suburb']; ?>
</option>
                    
                  <?php endfor; endif; ?>
              
                  </select>
                </div>
              </dd>
              <div class="clear"></div>
            </dl>
            <dl>
              <dt>Postal code:<span class="error">*</span></dt>
              <dd>
                <div id="isPostalDiv">
                  <input type="text" class="input" name="postalcode" id="postalcode" value="<?php echo $this->_tpl_vars['leadsDetArray']['postalcode']; ?>
" readonly="readonly" />
                </div>
              </dd>
              <div class="clear"></div>
            </dl>-->
            <dl>
              <dt>Job Type:<span class="error">*</span></dt>
              <dd>
                <select name="jobtypeid" id="jobtypeid" class="select">
                  <option value="">--Select Job Type--</option>
                  
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['jobtypeArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              
                  <option value="<?php echo $this->_tpl_vars['jobtypeArray'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['jobtypeArray'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['leadsDetArray']['jobtype']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['jobtypeArray'][$this->_sections['i']['index']]['trade_category']; ?>
</option>
                  
              <?php endfor; endif; ?>
              
                </select>
              </dd>
              <div class="clear"></div>
            </dl>
            <dl>
              <dt>Budget:<span class="error">*</span></dt>
              <dd>
                <select name="budget" id="budget" class="select">
                  <option value="">--Select Budget--</option>
                   
                   <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['budgetArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                     
                  <option value="<?php echo $this->_tpl_vars['budgetArray'][$this->_sections['i']['index']]['budget_id']; ?>
" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == $this->_tpl_vars['budgetArray'][$this->_sections['i']['index']]['budget_id']): ?> selected="selected"<?php endif; ?>>Under $<?php echo $this->_tpl_vars['budgetArray'][$this->_sections['i']['index']]['budget_name']; ?>
</option>
                  
                   <?php endfor; endif; ?>  
                  <!--<option value="10-50" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == '10-50'): ?> selected="selected" <?php endif; ?>>$10 to $50</option> 
                  <option value="50-100" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == '50-100'): ?> selected="selected" <?php endif; ?>>$50 to $100</option> 
                  <option value="100-150" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == '100-150'): ?> selected="selected" <?php endif; ?>>$100 to $150</option> 
                  <option value="150-200" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == '150-200'): ?> selected="selected" <?php endif; ?>>$150 to $200</option> 
                  <option value="200-250" <?php if ($this->_tpl_vars['leadsDetArray']['budget'] == '200-250'): ?> selected="selected" <?php endif; ?>>$200 to $250</option>              -->
                </select>
              </dd>
              <div class="clear"></div>
            </dl>
            <dl>
              <dt>Price:<span class="error">*</span></dt>
              <dd>
                <input type="text" class="input" name="price" id="price" value="<?php echo $this->_tpl_vars['leadsDetArray']['price']; ?>
" />
              </dd>
              <div class="clear"></div>
            </dl>
          </div>
          
          <!--Form Contain end--> 
          
          <!--Button here start-->
          <div> <span>
            <input type="submit" class="admin_btn" value="Submit" name="editleads_btn" id="editleads_btn" />
            </span> <span>
            <input type="button" class="admin_btn" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=leads&page=<?php echo $_GET['page']; ?>
';"/>
            </span> </div>
          <!--Button here end--> 
          
        </div>
      </form>
    </div>
  </div>
  
  <!--right_contain end-->
  <div class="clear"></div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>